﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.订单一览新.销售确认单
{
    public partial class Form订单发运及工序明细 : DevExpress.XtraEditors.XtraForm
    {
        public SaleConfirmInfoDTO saleConfirmInfoDTO = new SaleConfirmInfoDTO();
        public Form订单发运及工序明细(List<String> quoteIds,String page)
        {
            InitializeComponent();
            this.saleConfirmInfoDTO = 销售确认Service.getSaleShippingBySaleConfirmId(quoteIds);
            if ("工序".Equals(page))
            {
                this.gridControl工序.DataSource = this.saleConfirmInfoDTO.projectInstanceSimpleDTOS;
                this.xtraTabPage工序详情.PageVisible = true;
            }
            else if ("发运".Equals(page))
            {
                this.gridControl发运信息.DataSource = this.saleConfirmInfoDTO.orderShippedDTOS;
                this.xtraTabPage发运信息.PageVisible = true;
            }
            else if ("出入库".Equals(page))
            {
                this.gridControl出入库明细.DataSource = this.saleConfirmInfoDTO.stockInOutDetailDTOS;
                this.xtraTabPage出入库明细.PageVisible = true;
            }
        }
    }
}
